package com.zzl.bonds.ticket.dto.myticket;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.zzl.apidoc.annotation.ApidocModel;
import com.zzl.apidoc.annotation.ApidocModelProperty;
import com.zzl.general.common.utils.DoubleSerialize;
import lombok.Data;

import java.util.Date;

/**
 * @author : spp
 * @date : 2022/3/10 14:53
 */
@Data
@ApidocModel
public class ParentTicketInfo {
    @ApidocModelProperty(description = "主键")
    private String id;

    @ApidocModelProperty(description = "票据编号")
    private String ticketNo;

    @JsonSerialize(using = DoubleSerialize.class)
    @ApidocModelProperty(description = "票据原始金额/凭证金额")
    private Double ticketAllAmount;

    private Integer ticketTypeSource;

    @ApidocModelProperty(description = "票据数据来源,1:开立签收，2：转让签收")
    private String ticketTypeSourceStr;

    @ApidocModelProperty(description = "开单方id")
    private Integer openEnterpriseId;
    @ApidocModelProperty(description = "开单方企业名称")
    private String openEnterpriseName;

    @ApidocModelProperty(description = "转让方id")
    private Integer transferEnterpriseId;
    @ApidocModelProperty(description = "转让方id")
    private String transferEnterpriseName;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApidocModelProperty(description = "开单日期", validate = "yyyy-MM-dd")
    private Date invoiceTime;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApidocModelProperty(description = "转单日期")
    private Date transferTime;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApidocModelProperty(description = "到期日期", validate = "yyyy-MM-dd")
    private Date cashTime;

    @ApidocModelProperty(description = "剩余兑付天数")
    private String surplusCashingDays;

    @ApidocModelProperty(description = "期限")
    private Integer limitDays;

    @ApidocModelProperty(description = "金融机构Id")
    private Integer instinctyId;
    @ApidocModelProperty(description = "金融机构名称")
    private String instinctyName;

    private Integer ticketStatus;

    @ApidocModelProperty(description = "票据状态 1、正常持有 2、拆转待复核 3、已被拆转 4、融资待复核 5融资完成 6、到期未兑付 7、已兑付")
    private String ticketStatusStr;

    @ApidocModelProperty(description = "失效原因")
    private String invalidReason;
    @ApidocModelProperty(description = "备注")
    private String remark;


}
